<?php
/**
 * Created by PhpStorm.
 * User: My pc
 * Date: 2017/1/27/027
 * Time: 19:14
 */
// 开启SESSION
session_start();
// 设置utf-8编码格式
header('Content-Type:text/html;charset=utf-8');
// 网站根目录
define('ROOT_PATH',dirname(__FILE__));
// 引入配置信息
require ROOT_PATH.'/config/profile.inc.php';
//设置中国时区
date_default_timezone_set('Asia/Shanghai');
// 自动加载类
function __autoload($_className) {
    if(substr($_className,-6) == 'Action') {
        require ROOT_PATH.'/action/'.$_className.'.class.php';
    } elseif (substr($_className,-5) == 'Model') {
        require ROOT_PATH.'/model/'.$_className.'.class.php';
    } else {
        require ROOT_PATH.'/includes/'.$_className.'.class.php';
    }
}
//设置不缓存
$_cache = new Cache(array('code','ckeup','static','upload','register','feedback'));
// 实例化模板类
$_tpl = new Templates();
// 初始化
require 'common.inc.php';
